import req from "@/router/axios";

// eslint-disable-next-line require-jsdoc
export function get (params) {
  return req.get("/admin/sysBasePage/page", { params });
}

// eslint-disable-next-line require-jsdoc
export function add (params) {
  return req.post("/admin/sysBasePage", params);
}

// eslint-disable-next-line require-jsdoc
export function del (id) {
  return req["delete"]("/admin/sysBasePage/" + id);
}

// eslint-disable-next-line require-jsdoc
export function layouts (params) {
  return req.get("/admin/sysLayout/list", { params });
}

// eslint-disable-next-line require-jsdoc
export function getById (id) {
  return req.get("/admin/sysBasePage/" + id);
}

// eslint-disable-next-line require-jsdoc
export function getCompns () {
  return req.get("/admin/sysComponents/usableTree");
}

// eslint-disable-next-line require-jsdoc
export function alt (params) {
  return req.put("/admin/sysBasePage", params);
}